package com.lmc.controller;

import org.springframework.ai.openai.OpenAiChatModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/chat")
public class dsController {

    @Autowired
    OpenAiChatModel dsModel;

    @RequestMapping("/ds")
    public String ds(String question) {
        return dsModel.call(question);
    }
}
